<?php
/**
 * @version		$Id: default.php 17130 2010-05-17 05:52:36Z eddieajau $
 * @package		Joomla.Site
 * @subpackage	com_content
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

$item = $this->item;
?>

<div class="content-wrap">
    <span class="box-header">
            <span class="box-header-r">Chi tiết văn bản</span>
    </span>
    
    <div class="box-content">
    				<table width="100%" cellpadding="5" cellspacing="0">
			<tr>
				<td width="150">Số hiệu</td>
				<td><?php echo $item->text_code?></td>
			</tr>
			<tr>
				<td>Trích yếu</td>
				<td><?php echo $item->description; ?></td>
			</tr>
			<tr>
				<td>Ngày ban hành</td>
				<td><?php echo $item->text_created; ?></td>
			</tr>
			<tr>
				<td>Nhóm văn bản</td>
				<td><?php echo $item->category_title; ?></td>
			</tr>
			<tr>
				<td>Cơ quan ban hành</td>
				<td><?php echo $item->org_title; ?></td>
			</tr>
			<tr>
				<td>Thể loại</td>
				<td><?php echo $item->type_title; ?></td>
			</tr>
			<tr>
				<td>Loại công việc</td>
				<td><?php echo $item->working_kind_title; ?></td>
			</tr>
			<tr>
				<td>Người ký duyệt</td>
				<td><?php echo $item->signer; ?></td>
			</tr>
			<tr>
				<td>Hiệu lực</td>
				<td>
					<?php 
						if($item->still_valid == 1)
							echo '<img src="'.JURI::base().'components/com_jetext/images/icon-still-valid.jpg" width="16" height="16" />';
						else 
							echo '<img src="'.JURI::base().'components/com_jetext/images/icon-not-still-valid.jpg" width="16" height="16" />';
					?>
				</td>
			</tr>
			<tr>
				<td>Tải về</td>
				<td>
					<a href='<?php echo JRoute::_(JURI::base().'index.php?option=com_jetext&task=download&file='.$item->text_file);?>'>
						<?php echo '<img src="'.JURI::base().'components/com_jetext/images/icon_download.gif" width="16" height="16" />'; ?>
					</a>
				</td>
			</tr>
			<tr>
				<td></td>
				<td></td>
			</tr>
		</table>
	    <div class="clr"></div>
    </div>
</div>